home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / networke / civ-0.000 / civ-0 / civ-0.3 / src / misc.cc < prev    next >
C/C++ Source or Header  |  1995-02-16  |  254b  |  15 lines

  1. #include "misc.h"
  2. #include "list.h"
  3. #include <stdio.h>
  4. #include <stdarg.h>
  5.  
  6. void AddMessage(List<charp> &l, char *format, ...)
  7. {
  8.   char str[256];
  9.   va_list ap;
  10.   va_start(ap, format);
  11.   vsprintf(str, format, ap);
  12.   va_end(ap);
  13.   l.Insert(strdup(str));
  14. }
  15.